/**
 *@mainpage Interest Calculator
 *@author Kassandra Coan
 *@date April 4th, 2011
 *
 *
 *http://code.google.com/p/interest-calculator/
 *
 *@brief An algorithm that will calculate simple or compound interest.
 *
 */

#include <stdio.h>
#include <stdlib.h>
#include "interestCalculator.h"

int main(){
    int done = 0, frequency; //done = 0 to loop; done = 1 to stop
	float interest, principal, rate, time;
	
	while(!done){
		
		
		//simple interest
		principal = getPrincipal();
		rate = getRate();
		time = getTime();
		simpleInterest = calculateSimpleInterest();
		printResponse();
		
		//compound interest
		principal = getPrincipal();
		rate = getRate();
		frequency = getFrequency();
		time = getTime();
		printResponse();
		
		done = inquireContinuation();
	}         
}